fixed overlapping indices