fixed #25 (capital N, M)