add getLocation() method