update bg