fixed cout not declared error