output reformatting