handle smart labels