check for index.