moved transpose to library