try not using 'global'