removed "addressGlobal" variable from check()