added return to main()