explicitly handle array reduce cases