set up main function