start of new delete code