rejection sampling from ms