better practice w.r.t. calling main()