add average length calcs