store residuals