move clean() to Main