correction in model generation