add an inverse function