updated calling main()