Modified getinv to getinverse,done