making vars dynamic