How to use for iv in pairs