sampling in demo