trimming the ~