cleaned up the printing