changed var provider to local variable in optimal-rtt