added nwe rule for distances