simple garbage collector