revise type 2 onb generator cpp, get rid of big data issue