1 first change to adapt to inverse function