removed variables from global scope