fixing the clean operation