clear up the var scope