it would be better if node coordinates can also be checked.