jni methods modification