modify surrounded regions