error on doublons for residual