compressing bg