fixed missing 'var'