corrected the output form