added avarage bandwidth calculation