minor advance on ml ex8. to continue later