correct the output