update distance measurements