modify nm method

modify nm method