deletes items when it reaches 0