delete duplicate main function