use TupleArray as a storage for a doc