more math
scheme with 3 types of ions