decrement mem when deleted