enabling sampling from the model