changed invinc stuff to global