trouble with booleans