added sampling
added sampling to MLN