foreground codes