added array() function