update some incorrect code