edited global variabels