modify background function