fixing formula for average bandwidth