added array support in return types