Fixing error in logic statement -- missing paren