fixed misplaced not-operator