Update 4.0

trying to solf memory leak