removed extra parens and unnecessary if test