prepare to deal with pattern double delete