fixed syntax errors with booleans