use fill method to set the model