clean up some of the printing functionality
style edit