deleted residual code