main class update