update consecutive to work on all residuals