initial testing inv refactorization