new ClearDoubleTPA algorithm