added handle for region in case it is undefined