enclosing condition in () to address syntax error