handle situation where entity is nested within itself