fixing line-rate calculation