added a getLabel() function