modifed conditions for ex3_3