change theindex environment behaviour