add thc function of Trims