try to improve the GC and name anonymous functions