added inverse function and adapted the interface to it