only one file remains, that depends on region.h
experimental performance optimization
performance opt fix
minor performance opt