Refactoring getName for perfs