added static and const in array function arguments