added delete() method