separating-the-foreground-from-the-background