corrected the output