add tsid to returned map