add residual plot