adding a distribution matching ability