couldn't we avoid creating a global variable for this ?