if iv is undefined
make zero base iv