trying to figure out globalAssignment