added support for save collection