removing residual table