tweak algorithm to make better use of RTT