set k = p