add getRegionRect
rookie guide refactor