working on computing ptp distance, speed.