r24 enhance algorithm for domain division [ver 1.1.9]