removed C++ new and delete