added name parsing method