finally, using ugly global keyword