The Hantzsch reaction via 2 stepes in the presence of catalysis pyridine, piperidine and acetic acid was applied for generation of impurity B and impurity C, using 2, 3-dichlorobenzaldehyde, methyl acetoacetate and methyl crotonate as starting materials.