fix func: speed: distance