distance and rate of change