added adapter trimming script