update collection
create clear function