background and foreground color switching
cleaned up color switching