checkMain