old main class deleted