change code and collect and store data through concurrent, so as to improve efficiency