modified new.cpp