split main()