make scrap conditional for production and development