removed unused function. renamed getNameString to getName