now can add input
first phase almost done