https://alandroidnet.com/related/functions and inverse functions