refine the final results