third rev adding name label functionality