added reset indexes