ready to change how residual is computed