map object with next
reduce processing an object with next