add locate() method