move GC to clear operation and return the value of all