formating the outputs