refine bg height