add reduce for collection name

adding reduce function for clean up. (don't merge yet)