remove all elements prior to each update