minor fixes on the bug
add region statistics