Labels transformation