refactoring main()