change calc_potential logic better than before