fixed the way we found stuff to remove, and removing enough items to make room for new item