adding encapsulated delete method