added array return