added debug messages for setting background color