changed implementation of compare rtt by isp