remove variables that aren't used