move the auto-inc into the global