adding inv-modular