add contition and typeOf model and generate data for models