added residual colname to output