working general inverse