fixed input stuff for robot