tidy up of print