change boolean to bool for consistency