add speedtest fuction