better formatting of output