added buffer/deletes to collect-garbage