fix array syntax for custom functions