forgot $ infront of global array variable