correct entity relationships