removed const qualifier from InitInv method