before patch