improve GC triggering and output result