change attributes on nodo and making asignarHijos function