fixed cout problems