added background and foreground