remove bad blocks