updating distance default value