cleans and optimizes crumb model