- remove not needed variable
- fix leak momery
update