changed array size to 10000