updated ewald