clean main class