update potentials