trying aimd implementation