added globals to abstract from code level