adding model generator