add methods for sampling log generation