replace global with base