now you can add them in any order. there's an explicit check at the end to figure out whether there are overlapping regions.