functionality for creating collections added