add my version of Heng Li's trimadap