finished DEL functionality