potentials array working.