improved the del method