made tablemodel working*