check_bg