update collection example