added trim2ds