update main class