fixing inverse_of