updated region extraction