improvements to edge response calculation