formatting the outputs