fixing conflict in getName function