improve memory usage
Automatically rewritten for npm.