solving some proplems regarding to inverse of