performance improvements, garbage collection