add collections logic