Is this referencing the global variable defined on line 22?  I feel like this might be a bug, since the argument ```data``` is not used in this function