Refactor metodo inversa