added code to test backgrounds