revised the output