optimize bg a bit