move transpose to module