in array function