correcting outputs