sampling and testing