Thus, when Balicki et al. reacted 1 with acetylacetone in acidic medium, they separated a product which was interpreted as the 1-cyanoacetyl-3,5-dimethylpyrazole 162 as shown in Scheme 58. Similarly, cyanoacetohydrazide 1 reacted with 2-acetyl-3,5-disubstituted cyclohexanones 163 in presence of HCI with the formation of the condensed pyrazoles 164 . It's worthy to mention that, when El -Hashash et al carried out the same reaction in alkaline medium instead of acidic medium, the quinoline derivatives were only obtained (Scheme 59). When the hydrazones 176 ( prepared from the reaction of 1 with acetone or 2hydroxyacetophenone) were refluxed in acetic acid, the reaction product was influenced by the substituent present in the hydrazone. Thus, the reaction is assumed to proceed via the pyrazoline intermediates 177 which undergo aryl transfer to the thermostable C-arylidene condensate intermediate 178 with subsequent intracyclization to the corresponding aminopyrazolones 179 and 180. In case of the acetone derivative, the reaction terminated at this step and the aminopyrazolone derivative 179 was isolated, whereas in case of the 2hydroxyphenyl derivative 180 further cyclization involving the NH 2 and OH groups occured and the chromenopyrazolone 181 was the end isolable product 4 (Scheme 63).