use consistent vector for index