update and remove items