add stat and  fix buddy bugs