variables moved from method scope to global scope