replace rel = rel_type