add source file for main function.