resolved the problem with variables and function names with respect to
inverse