restrict var scope