corrected the condition