don't add invalid relations;