runing model
fix bugs