working on model generation