modifying f(k)