updated some globals