removing potentials and positions