added assignment logic for region 0, 2, 6, 8