cleanup getLocation declaration