fixing boolean data types