bug fix: add 'var' keyword