passing a dict to the model