beginning of probability generation