update distance tutorial