Deleted old comment
added some parentheses to boolean ops