setting profile for foreground also