declare with 'var' for scoping