finish chunks function on Enumerable