change model create function