exported replacement method for indexes