Change resid calc