add delete method to model