Update NED.cpp