handling missing relationships