refine score and train