fixed demo, was not working, error in FFI function