added rangefinder update()