change sample2ty to sampleToTypes in cnabrowser for consistency