add horizontal distance measurement