refactoring the print version of this form