set bg to contain