refactored code, changed background