vectorised xLocate