updated refine_learning