edit background, added some improvements