Sep 11 - adjusted bg change function