gc.collect() replaced