fixes output issue