end of model buiding