normalizes edge gradient