handling nil for country attribute