pH adaptation