updated distance