1. fix many bugs, and then the programm run correct.