         qgrams.begin(),
         qgrams.begin() + n_queries,
         ranges.begin(),
-        nvbio::plain_view( qgram_index ) );
+        nvbio::raw_pointer( qgram_index ) );
 
     cudaDeviceSynchronize();
     timer.stop();

    sorted_qgrams = qgrams;
    sorted_indices.resize( n_queries );
    thrust::copy(
        thrust::make_counting_iterator<uint32>(0u),
        thrust::make_counting_iterator<uint32>(0u) + n_queries,
        sorted_indices.begin() );

    thrust::sort_by_key( sorted_qgrams.begin(), sorted_qgrams.end(), sorted_indices.begin() );

        sorted_qgrams.begin(),
        sorted_qgrams.begin() + n_queries,
        ranges.begin(),
        nvbio::raw_pointer( qgram_index ) );

    cudaDeviceSynchronize();
    timer.stop();
