attempting to move variables out of global namespace