cleaning bad var