refine model definition.