adjusted calculation of phi_0 for each kick for potentials