small cleaning

cleaning of unused globals.. code is very clean :)
- fixed a missing global.