fixing delete safety