fixed the scrapping problem