finish basic locating function