added thinning to multichain functions