simplified labelling function