added ewald relaxation