removes nonsense