fixed up nernst potentials