notes on functionality of main()