modify reduction_data method