refine the models