better transposed table handling