trim from mixture distribution
Merge branch 'trim' into dev