restructure output body