fixes to transpose