added object array function