added reset to index