Modify: change interupt to pooling

change main()