keep indexes in sync