simulated the model