finished setting up main()