cleaned up w_k w_n