debug before delete