fixed setLabels declaration format