added odometry control code