remove references to free stuff