initial index setup