complete logic for TBLModel