rename main function