started jni work on recurrence and frequency