fixing residual files