made token replace global