version trimming