begin to adding global variables (need for qsort)