removing bad env