fix boolean and syntax