remove unnecessary data and change session back to body