bugfix 'collection' is already defined.