fixing delete feature