fix q3(sampling)