delete bg structure adn change output in grab_bg