working with inverse model