split draw label function