understand var scope