initialize index