made speed.distance 32bit integer