updating model generation