Ke calculation stuffs