almostly complete addRelation