changed global() so that static and generated labels are no longer global