solved output issue