consider axes as an array of items
reduce function definition