added possibility to transpose