again, why a function and not a global variable like in line 29?