fix for array return types