solved output bug