corrected conditional statement