adding reduce