now handles printing to clean input