added available rate and fixed the data rate change scheme