removing references to files