fixed globals again