added index1 and index2 to d3