improvement of comodel generation