code clean and define array size to 10240