Removed unused code in cleansing