allow oINV to handle int
added functions