fix: comparison operators should take precedence over logical operators