switching to LocateFunc