correcting output