added missing var decleration