finished delete method