add inputs_buf and all time move