modify array routine, change header file define