afn funcionando as intended ++