final

fix inverse assigment.
add test (commenetd