beuatify generated code
reduce stack_frame size
simplify generated code