added EdgeIntensity function