moved commented-out code ahead of the JNI call instead of behind it