added distance for ultrasonic