removing all refs