working inversion problem, just need solution