sampling working