added missing index code