BG library