Regorganize inner of genoutput