change the treatment of boolean type