code for Surrounded Regions