renamed globals to use underscore prefix