rework on edg type conditions
Merge remote-tracking branch 'origin/master'