new trimLeaves method
0.1.30