working on model gen