determination of potentials