refactor name metodo