implemented copy_relations