replace boolean type by bool