add gc try to reduce the memory usage