add distance measuring