added delete method.