add sampling class
fix in sampling class