added auto degilding