updating array to be faster