sampling test implemented