made changes to format the output