edited approach to model selection before delete