finished delete and update