added get label function