can we add a comment here indicating why this globals declaration is needed?