finished inverse, everything works