change main function position