eliminate old complexity residual code