static garbage collection working