running version
fix bugs and save model