cleaning bad files