removing tmp variable