added Global() for subs
fix typo