uncommented some input code, and it works