no more shitty for(int thanks to GLOBAL VARIABLES