tune up the model definition