not able to trace the error in fulling the neccassary conditions.