use new delete API