removed unneeded parentheses from if clause