corrected 'if' statement syntax error