collection automatically updates after adding a document