try using json instead of model tuple