added custom auto degilding