model define for tmtwine