modified the warning message on the reduce() method