updated method of creating regions