ffi creation using tables instead of text variable