modified N gram 2