refine margin