change order of var setup.