updates
updates for delete() method