added the namelabel function