make some refinements