debugged np -> ng