misuse of logical operators