refine an equation