finish model defined