updated new.cpp