region id implementation