no longer call main() function