now working on instance.cpp, del functions work