extract #clean to Helper.clean