to determine location