fixing outputs issue again