update distance value