Fetch the values of indexes to be replaced