condition statement corrected