updates for delete() method