added collections module
Revert "use partial instead of lambda"

This reverts commit 79f54274575cd59bc82e236216393a08d4186441.