modify main function in summary