added function getName()