add funtion of delete