update jk function