separation of foreground and background