use dictionary for model creation