logical operator error