r295: generate NM