fix the code of sampling part and experiment part