added ewald