reformatting output