add codegen for bool