cleaning up bad files