refine model