adjusting background correctly