array function added