refine and mag