update comments. fix memory growth.