fix cout messages