added part of inv.s.