add length distribution to output