moving finding k_0 here