reverting transpose construction to contiguous storage for better performance