little modification on the model