edited rtt computation