renamed indexSwapper to indexReplacer, adjustments in index replacing