add g method to help directjk faster