add isLast to Model