i think that would be better to delete this global variable