set index once on start