added relations to entities