acidity functions