remove a unnecessary loop in geoip