break up main()