remove useless global variables definitions