added globals.