added residual plot