mark array as const and use ARRAYLEN macro for calculating length of the array