changed isInRelation mapping