ratio update
gen level in unfold file