fix the del sub method