edited background
cleaned up code