adding index