retraining sample handler