adjust name label function