add some input code