lookup index in the right place