updates the collection