fixed init method in Model