add document for sampling functions