compute all quantities of interest put them in the output params