changed the name display function