add delete method
implemented delete