remove bad packages