created sub to retrieve name given ID