addpan update 

fix bugs