adding index order code