extract transpose to own module