def distance change