fix main, sc, tc