corrected conditonal