working on just two-parmed inversion