remove residual puts