original solution to invert problem