updated clean method