fixing delete method