implemented jni getter