rename category -> label
much simpler implementation