fix syntax and add missing boolean