initialize index once on bind and partial