refine the order