how to update a collection