the labels were being converted to numerical values, the original code
could not handle that, now it does.