before changing k and w