Update query_contig RE for different nameing structure