added ion labelling function