completed the support for IN/OUT from TOS rowStruct