added static variable for path record distance.