change all the k computation