fixes to n_m_words