enhance label printing function