initial version of region ordering