input2 added and input analysis finished