added input printout