initial potential calculation