function lengths
merging