generate_full_model repared