clean up delete() method