refine bg