added missing var declaration for strict mode