opimizing Code

Optimizing Code erasing non used variables.