finish modulus inverse