fixing relations, add target relation